﻿
@section style{
    <link rel="stylesheet" href="~/css/index.css?v=0.0.1">
}
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">管理后台</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="">控制台</a></li>
        </ul>
        <ul class="layui-nav layui-layout-right" lay-filter="side-main">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    @ViewBag.SurName
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" href-url="/Sys/AdminUser/EditPassword">修改密码</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/Login/Logout">退出</a></li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="side-main">
                @{
                    var menu = ViewBag.Menu as List<DTO.DTO.Sys.Module.ModuleFullDTO>;
                    foreach (var item in menu.Where(o => string.IsNullOrWhiteSpace(o.ParentId)))
                    {
                        <li class="layui-nav-item">
                            <a href="javascript:;"><i class="layui-icon">&#xe857;</i> @item.Name</a>
                            <dl class="layui-nav-child">

                                @foreach (var child in menu.Where(o => o.ParentId == item.Id))
                                {
                                    <dd><a href="javascript:;" href-url="@child.PageUrl">@child.Name</a></dd>
                                }
                            </dl>
                        </li>
                    }
                }
            </ul>
        </div>
    </div>
    <div class="layui-body mt-body">
        <!-- 内容主体区域 -->
        <div class="layui-tab layui-tab-card mt-tab-card" lay-filter="card" lay-allowclose="true">
            <ul class="layui-tab-title mt-tab-title">
                <li class="layui-this">
                    <span><i class="layui-icon">&#xe68e;</i></span> 首页
                </li>
            </ul>
            <div class="layui-body layui-tab-content mt-tab-content">
                <div class="layui-tab-item layui-show">
                    <iframe src="/Home/Main" frameborder="0"></iframe>
                </div>
            </div>
        </div>
    </div>
</div>
@section script{
    <script src="~/js/index.js"></script>
}


